package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户操作评论实体类
 *
 * @author gzkemays
 * @since 2021/12/21 15:54
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_user_comment", schema = "yzj_forum")
public class ForumUserCommentEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableId("id")
  private Integer id;

  /** 评论id */
  @TableField("commentId")
  private Integer commentId;

  /** */
  @TableField("createTime")
  private Date createTime;

  /** 点赞 */
  @TableField("toGood")
  private Boolean toGood;

  /** */
  @TableField("updateTime")
  private Date updateTime;

  /** 用户id */
  @TableField("userId")
  private Integer userId;

  @Override
  public final Class entityClass() {
    return ForumUserCommentEntity.class;
  }
}
